<div id="content_main">

    <h3> Profile </h3>
    <hr >
    <div class="user">
        <table border="1" cellpadding="5" />
        <?php
        if (empty($profil)) {
            echo "Tidak ada data profile";
        } else {
            ?>
            <table>
                <tr>
                    <th> username </th>
                    <th> type </th>
                    <th> status </th>
                </tr>
                <?php
                foreach ($profil as $valuser):
                    ?>
                    <tr>
                        <td> <?php echo $valuser->username; ?> </td>
                        <td> <?php echo $valuser->type; ?> </td>
                        <td> <?php echo $valuser->status; ?> </td>
                    </tr>
                    <?php
                endforeach;
                ?>
            </table>
            <?php
        }
        ?>

        <?php echo form_open('home/upd_pass'); ?>
        <table>
            <tr>
                <td>New Password : </td>
                <td><input type="password" name="password"</td>
            </tr>
            <tr>
                <td colspan="2"><?php echo form_submit('submit', 'update', 'id="submit"'); ?></td>
            </tr>
        </table>
        <?php echo form_close(); ?>
    </div>
</div>